/**
 * @desc: 设备注册管理
 * @author xiongyi
 * @date 2022/11/18
*/
import request from '@/assets/common/js/utils/request'
/**
* @description 获取设备机型
* @param Object: {data} 接口请求参数
* @return
* @author xiongyi 2022-11-18 10:58:19
**/
export function sbzcGetSbjx(data) {
    return request({
        url: "devcietype/getlist",
        method: "post",
        data: data,
    })
}
/**
* @description 根据查询条件获取设备编号和名称列表
* @param Object: {data} 接口请求参数
* @return
* @author xiongyi 2022-11-18 10:58:19
**/
export function sbzcGetDeviceid(data) {
    return request({
        url: "deviceinfo/getdeviceidnamelist",
        method: "get",
        params: data,
    })
}
/**
* @description 获取数据
* @param Object: {data} 接口请求参数
* @return
* @author xiongyi 2022-11-18 10:58:19
**/
export function sbzcGet(data) {
    return request({
        url: "deviceinfo/get",
        method: "get",
        params: data,
    })
}

/**
* @description 设备注册
* @param Object: {data} 接口请求参数
* @return
* @author xiongyi 2022-11-18 10:58:19
**/
export function sbzcCreate(data) {
    return request({
        url: "deviceinfo/create",
        method: "post",
        data: data,
    })
}
/**
* @description 跟新设备注册
* @param Object: {data} 接口请求参数
* @return
* @author xiongyi 2022-11-18 10:58:19
**/
export function sbzcUpdate(data) {
    return request({
        url: "deviceinfo/update/"+data.id+"",
        method: "put",
        data: data,
    })
}

/**
* @description 设备注册删除
* @param Object: {data} 接口请求参数
* @return
* @author xiongyi 2022-11-18 10:58:19
**/
export function sbzcDelete(data) {
    return request({
        url: "deviceinfo/delete",
        method: "DELETE",
        params: data,
    })
}
/**
 * @description 设备注册导出
 * @param Object: {data} 接口请求参数
 * @return
 * @author qiankui 2023-2-24 20:01:03
 **/
export function exportregistrationinfo(data) {
    return request({
        url: "deviceinfo/exportregistrationinfo",
        method: "post",
        responseType: "arraybuffer",
        data: data,
    })
}
/**
 * @description 批量注册
 * @param Object: {data} 接口请求参数
 * @return
 * @author qiankui 2023-2-24 20:01:03
 **/
export function batchregistration(data) {
    return request({
        url: "deviceinfo/batchregistration",
        method: "post",
        data: data,
    })
}
